package com.ll.module_translate.entity

import androidx.room.Entity
import androidx.room.PrimaryKey

/**
 * @Author: ll
 * @CreateTime: 2021/10/29 10:04
 */
data class TranslateResult(
    var from: String,
    var to: String,
    var sumSrc: String,
    var sumDst: String,
    var trans_result: List<TransResult>,
    var content: List<TransResult>,
    var error_code: String?,
    var error_msg: String?,
)

@Entity
class TransResult(
    @PrimaryKey(autoGenerate = true)
    var id: Int = 0,
    var src: String = "",
    var dst: String = "",
    var nyr: String = "",
    var fs: String = "",
    var like: Boolean = false
):java.io.Serializable
